using System;
using System.ComponentModel;
using System.Web.UI;
using System.Drawing;

namespace WebChart
{
	[PersistenceMode(PersistenceMode.InnerProperty), TypeConverter(typeof(ExpandableObjectConverter))]
	public class ChartShadow
	{
		// Fields
		private Color _color = Color.DarkGray;
		private int _offsetX = 5;
		private int _offsetY = 0;
		private bool _visible = false;

		// Properties
		[DefaultValue(typeof(Color), "DarkGray"), NotifyParentProperty(true)]
		public Color Color
		{
			get
			{
				return this._color;
			}
			set
			{
				this._color = value;
			}
		}

		[NotifyParentProperty(true), DefaultValue(5)]
		public int OffsetX
		{
			get
			{
				return this._offsetX;
			}
			set
			{
				this._offsetX = value;
			}
		}

		[DefaultValue(0), NotifyParentProperty(true)]
		public int OffsetY
		{
			get
			{
				return this._offsetY;
			}
			set
			{
				this._offsetY = value;
			}
		}

		[DefaultValue(false), NotifyParentProperty(true)]
		public bool Visible
		{
			get
			{
				return this._visible;
			}
			set
			{
				this._visible = value;
			}
		}
	}
}
